package ygw.study.advanced.sort.common;

/**
 * <p>
 * xxxxx
 * </p>
 * <p>
 * Copyright:2021.All rights reserved.
 * </p>
 * <p>
 * Company:Zsoft
 * </p>
 * <p>
 * CreateDate:2021-05-25 12:42
 * </p>
 *
 * @author YuGongWen
 * @history Mender:YuGongWen；Date:2021-05-25 12:42；
 */
public class SortUtils {

    public static void main(String[] args) {
        Integer []arr=gennerateArray(10, 100);
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
    public static Integer[]  gennerateArray(int len,int max){
        Integer[] arr=new Integer[len];
        for(int i=0;i<arr.length;i++){
            arr[i]=(int)(Math.random()*max);
        }
        return arr;
    }


}